#pragma once
class CShellBrowser;
class CShellBrowserUI : public CShellBrowser, public CControlUI
{
public:
	CShellBrowserUI(HWND mainWnd);
	~CShellBrowserUI();
//duilib
	virtual void DoInit();
	virtual void SetVisible(bool bVisible = true);
	LPCTSTR GetClass() const;
	LPVOID GetInterface(LPCTSTR pstrName);

	void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);

	virtual void SetPos(RECT rc, bool bNeedInvalidate = true);

	int UpdateView(IShellFolder* folder);
private:

//com interface
public:
	
	// *** ICommDlgBrowser methods ***
	STDMETHOD(OnDefaultCommand) (THIS_ struct IShellView * ppshv);
	STDMETHOD(IncludeObject) (THIS_ struct IShellView * ppshv, LPCITEMIDLIST pidl);
	

private:
	HWND m_subhWnd;
};

